V 2.4.0
Fairly extensive re-write of my XML parsing, highlights:
- It works! I was able to parse, complete with events, a 387 MB xml file.
- It uses less memory during operation
- After parsing is done most of the memory is cleared
- Negative:Unfortunately, since I'm not taking all the events into memory at once I can't give a % done for events, some large files may have 1.5million or more, so be patient. It's slower then legends mode but I think it's worth it.
Every world with xml that was sent to me works as well, which is the best I can do for testing right now.
I'm sending out a few PMs to those who showed interest but had world's too large. If you wouldn't mind testing against it, that'd be great .
Awesome update I was able to parse a 784 MB XML file
Failed with a 1.02 GB XML file but...cant expect everything...nor do I expect GB XML files lol....I got carried away there >.>
Fantastic. Hadn't tried one as large as 784 MB, glad it worked. There are a few things you'll notice that won't work. For example listboxes can only hold 32k items, so it won't list every hist fig you have, I'm not sure of a good way around this right now, but we'll see. Also, it's possible you'll find a leader that has "...More" at the bottom but the "link" doesn't work, that's because that person wasn't in the histfig listbox.
I'll let you know when I make more memory improvements, I still have a lot of options. How did you manage a file that big? thousands of years, no cull important figures, and huge world?
Run time error '6': overflow
Happened around 59% xml parsing. Total file size is 263mb.
V 2.4.1
I fixed this problem, apparently you have a 50 civ world, and just a single one of those civs had 93 sites (out of 600 total). I've never seen a civ with that many sites. Since it was humans they built a HUGE amount of roads, so much so that the road counter was over 32k (there are multiple roads that make up a connection between two sites on the map). That was one of those things I didn't even imagine could be so large, but it makes sense now. As I get larger and larger worlds I'll uncover huge world problems
.
Also, now I show the Year of the last checked event, so when you're running through 10k years of events, you can get an idea of how long it'll take.