> I get on average about 210 ms for 500 calls, including looping overhead. So 
> we're looking at 500 *nanoseconds* per call.

Sorry, that should be 500 *microseconds*.


> That is an even crazier. What are you doing in set()? I tried this:
> 
> method "set"($self; $key; $value)
>   $self{"_dict"}{$key} := $value
> end method
> 
> $obj := mylib.new
> $t := milliseconds
> 
> for($i; 1; 500)
>  $obj->set("sortOrder"; 1)
> end for
> 
> write(milliseconds - $t)
> 
> I get on average about 28 milliseconds for 500 iterations, or about 

Sorry, I accidentally sent before finishing my typing. I was saying I'm getting 
about 56 microseconds per call. So I can't see how that is causing a 10% loss 
in performance.


>> If this seems reasonable, given what's going on inside those classes, then 
>> I'll simply use those functions sparingly.

Your numbers don't seem reasonable to me at all. I could be wrong, but it 
doesn't make sense. How are you doing the profiling?

Regards,

  Aparajita
  www.aparajitaworld.com

  "If you dare to fail, you are bound to succeed."
  - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/

Reply via email to