Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 7 results for
seralization
- Page 1
Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by DarkLightning7
… unnecessary pieces to disk. I was thinking I could use
seralization
to save the objects to disk only problem i have…
Re: Save load help.
Programming
Software Development
13 Years Ago
by alemojarro
The problem had to do with
seralization
and is solve now.
Re: Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by JamesCherrill
Just a quick answer beause I'm going to bed now.... but situations like this are often solved by having an abstract Chunk superclass, with all the getters/setters defined, and two concrete subclasses InMemoryChunk and OnDiskChunk. The in memory version just works as expected, but the on disk version's methods trigger a read from disk and creation …
Re: Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by DarkLightning7
Thanks for the reply james. Sorry it took so long for me to get back to this(was gone on a trip). Im not exactly sure how to use a proxy to wrap the chunks when the Terminals are the connectors and the chunks know nothing about their neighbors. Should I use an id system for the terminals? So the connected terminal asks the chunk proxy for its …
Re: Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by JamesCherrill
I'm also just back from a trip, so good timing! Unique object IDs for database use is a standard problem with many standard solutions - just Google. Probably the easiest way to explain the proxy idea is with some (pseudo) code - but remember this hasn't been in any way optimised for your (unpublished) complete requirement... abstract …
Re: Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by DarkLightning7
Thanks for the sample code I was having trouble figuring out how to use java.lang.reflect.proxy because I could not find any real good examples. *Depending on how many total chunks there are the proxy method could use up a lot of memory for all the "empty" proxies?* I came up with another way to handle chunks that are not in memory. …
Re: Operating on partialy loaded data. Mapping
Programming
Software Development
11 Years Ago
by JamesCherrill
The proxy class has just a ref to the real chunk (in addition to the inherited vars - which I just edited because the linked chunks var isn't needed execpt in a real chunk), so thats one ref and one ID (int?), so it's about as small as a class instance can be. You should be OK for many millions of those at least. The mechanism you are describing …
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC