|
From: TheFGFSEagle <the...@gm...> - 2023-06-12 19:46:35
|
Oh great, could you explain it a bit, please ? I have no idea how it could work without storing a pointer to the node ! :mrgreen: Am Mo., 12. Juni 2023 um 21:42 Uhr schrieb James Turner < ja...@fl...>: > > > On 12 Jun 2023, at 20:34, TheFGFSEagle <the...@gm...> wrote: > > > mean, if we have a million nodes, adding one pointer into the class > (unsigned int = 4 bytes ?) would add 4 MB RAM usage … I think everyone can > afford that ! :D > > > Pointers are 64-bit (8 bytes) and we don’t have just one million - from my > recollection in heavy cases we sometimes have tens of millions. (If you > search back for myself and James Hogan discussing this around > SGSourceLocation, he posted some numbers of property-nodes in say the > Shuttle and A320) > > Anyway, I’ve found a solution which doesn’t increase the size at all, and > seems to work, just testing with FG now. > > Kind regards, > James > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > |