Dan Sugalski <[EMAIL PROTECTED]> writes:
>>Nick has yet to touch sv_gets() - partly 'cos it was too scary to mess
>>with - so you can if you like ;-)
>
>(As I dig through old mail...)
>
>What I was thinking of was making the scalar behind $/ magic, 

It already is - you mean more magical? i.e. stuffs a function into the 
table depending on its value.

>throwing a 
>pointer to the current sv_gets function into the interpreter structure, 

Hmm,
I would rather move _away_ from global magical $\ toward making it a 
"property of the handle".

>and 
>then splitting off sv_gets into several little functions. (Or possibly 
>several big functions, I'm not sure) It'd toss out a few compares from the 
>head of sv_gets, which'd speed it up a little.

I doubt it will show much - most of sv_gets time will be spent in the 
loop. The one case that might go faster is the $\ = \128 case - as then 
the "loop" is non-existant.

I really would not worry about unless you are "inspired".

-- 
Nick Ing-Simmons

Reply via email to