in reply to Re: Data structure challenge
in thread Data structure challenge
If amortizing the initialization cost over the lifetime of the structure were allowed, then simple Perl arrays could be used (by not preallocating the size of the array so that the initial creation is still O(1)). Your use of strings 'suffer' from this same 'problem'. So I'm pretty sure Abigail would reject this solution.
Your solution would qualify if you could preallocate the length of the string w/o Perl initializing the contents of the string. This is pretty trivial to do in XS, hence the disqualification of that method.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Data structure challenge (amortized)
by dpuu (Chaplain) on Mar 17, 2004 at 21:27 UTC | |
by sleepingsquirrel (Chaplain) on Mar 18, 2004 at 00:01 UTC | |
by Abigail-II (Bishop) on Mar 18, 2004 at 00:15 UTC |