At 7:55 PM -0400 8/7/03, Simon Glover wrote:
In the get_integer_keyed_int method in perlarray.pmc, we're cuurently
 doing:

[Snip]


(with similar code for get_number_keyed_int and get_string_keyed_int).

 In other words, if we're referencing an element outside the current
 array bounds, then we call undef(), which creates a new PerlUndef PMC,
 and we then use this _solely_ to call get_integer on, despite the fact
 that we _know_ that the result is going to be zero. This seems
 remarkably inefficient. Is there any good reason not to simply rewrite
 the above

Nope, though we do need to add a conditional use of undefined value warning. -- Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to