Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Profiling Rebol API to DyBASE

From: knizhnik:garret:ru at: 20-Dec-2003 17:04

Hello Robert, With the help of Rebol mail list members, I was able to significantly improve performance of Rebol API. Now the difference with for example Python, is not so high. I do not believe that it is possible to do something more in improving performance. Certainly it is possible to speed up testlink.r (for example by disabling garbage collector), but such "optimization" is not useful. The problem with hash table performance is more or less fixed. There is also yet another problem with Rebol - objects seems to be stored very inefficiently. Creating 100000 objects with 18 fields (as in testlink.r example), increase size of rebol.exe till 200Mb. You can reproduce it if you remove reset-hash in testindex.r, which cause all 100000 objects to be present in memory. It will significantly slow down application and you can see a lot of page faults for Rebol process in Task Manager. So to achive good performance you should avoid to load a large number of persistent objects from the database (by periodic hash reset). -- Best regards, Konstantin mailto:[knizhnik--garret--ru]