- Joined
- Jul 10, 2007
- Messages
- 6,306
I definitely recommend just cp all these into one thread so people can see the full picture all on one page.
//! i id = getobjectid(base, objtype)
//! i while ((c.code()):findline("'" .. id .. "'") ~= nil) do
//! i id = getobjectid(base, objtype)
//! i end
//! i id = getobjectid(base, objtype)
//function getvarobject(base, objtype, varname, import)
//function getvarobjectname(value)
//function getvarobjectvalue(objectname)
//function updateobjects()
globals
constant integer ABILITIES_UNIT_INDEXER='A!!!'
constant integer UNITS_UNIT_EVENT='n!!!'
endglobals
//! i local imports = {}
//! i do
//! i local s,k = vars2:find("constant integer ")
//! i local s2,k2
//! i while (s ~= nil) do
//! i s2,k2 = vars2:find("=", k)
//! i imports[vars2:sub(k+1, s2-1)] = true
//! i s,k = vars2:find("constant integer ", k2)
//! i end
//! i end
1.0.0.0
6+ hours to create 8000 objects
6+ hours to work with any objects in a map with 8000 objects
2.0.0.0
20+ minutes to create 8000 objects
20+ minutes to work with any objects in a map with 8000 objects
3.0.0.0
1.5 minutes to create 8000 objects
2 seconds to work with any objects in a map with 8000 objects
1.0.0.0
6+ hours to create 8000 objects
6+ hours to work with any objects in a map with 8000 objects
2.0.0.0
20+ minutes to create 8000 objects
20+ minutes to work with any objects in a map with 8000 objects
Version 1.0.0 must have been disgustingly slow if it took 6+ hours to create 8000 objects.
I don't want to comment on what I think about the wc3c.net community, but I just find it astonishing how you can go from 1 object per 2.7 seconds to roughly 120 objects per 2.7 seconds.That seems like an enormous leap in time frame - you must have had to restructure the entire thing to achieve that speed increment.
//! i createobject("Amls",generateid("Amls"))