in reply to Re^7: Techniques On Saving Memory
in thread Techniques On Saving Memory
Devel::Pointer has a deref() function, which allows you to get you hands upon the address without literally stringifying it. What you loose, is the type and blessedness information. If you can get that all in a single call rather than messing around with parsing the stringified representation that would just make things simpler.
The other side is if it is possible to recover that information from the SV pointed at, rather than having to store it and related it back later when you unsmash it, that would make life a great deal easier and remove another level of storage requirement and lookup.
With both sides, plus the appropriate refcount manipulations, you have the possibility to retain a single 32-bit value as a handle to anything. That makes the whole compact array idea almost practical.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Techniques On Saving Memory
by japhy (Canon) on Mar 10, 2005 at 18:00 UTC | |
by BrowserUk (Patriarch) on Mar 10, 2005 at 18:18 UTC | |
by japhy (Canon) on Mar 10, 2005 at 18:33 UTC | |
by BrowserUk (Patriarch) on Mar 10, 2005 at 18:40 UTC | |
by Limbic~Region (Chancellor) on Mar 10, 2005 at 19:14 UTC | |
by japhy (Canon) on Mar 10, 2005 at 20:06 UTC | |
by BrowserUk (Patriarch) on Mar 10, 2005 at 19:45 UTC | |
by diotalevi (Canon) on Mar 11, 2005 at 15:38 UTC | |
by BrowserUk (Patriarch) on Mar 11, 2005 at 16:46 UTC | |
by diotalevi (Canon) on Mar 11, 2005 at 19:15 UTC | |
|