I completed one more IronPythonConsole.exe test.  I added the below
method to CNUDB.py
===
    def test(self,thefile):
        time1=time.time()
        self.load_predicates_file(thefile)
        time2=time.time()
        print "-- test took",str(round(time2-time1,2)),'seconds. --\n'
===

The results were a little better but I haven't thought about what all
this means as far as how to design my ConceptNet 2.1 Class Library. 
But are are the results (from a Pentium4 3ghz 512RAM) for anyone who
is following this thread:
=====
IronPython 1.0.2280 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys,time
>>> sys.path.append('E:\\')
>>> import CNUDB
>>> cn=CNUDB.ConceptNetDB()
>>> cn.test('E:\\machine_All.txt')

-- test took 0.37 seconds. --

>>> cn.test('E:\\machine_All.txt')

-- test took 0.08 seconds. --

>>> cn.test('E:\\machine_All.txt')

-- test took 0.06 seconds. --

>>> cn.test('E:\\machine_All.txt')

-- test took 0.06 seconds. --

>>> cn.test('E:\\machine_All.txt')

-- test took 0.06 seconds. --

>>>
=====
sum = .63

Almost the same .64 result as my first IronPythonConsole test.  So I
am still trying to get close to IDLE 1.1.2's  0.17 seconds result.
--
Joseph

On 4/20/06, JoeSox <[EMAIL PROTECTED]> wrote:
> > Ok great.  I think this will work.  Here are the two files you will need:
> > http://joeswammi.com/projects/CNUDB.py
> > http://joeswammi.com/projects/machine_All.txt
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to