CFMX using list directly
Alot of ListGetAt(list, position) <-- Idea is to avoid calling ListGetAt()
20 - 50 times within any given page output.
<cfloop list="..." ...>
That's much faster than using listGetAt() - assuming you wish to simply iterate through the list in order.
You could have a JavaBean that presents an array-like interface butYes, the above is exactly what i am trying to do.
manipulates the RBO lists directly and another JavaBean that presents a
struct-like interface but manipulates the RBO lists directly
Right, but you don't need to do the conversions from list to achieve this - you can iterate over the lists natively in Java.
MAN!.. i am still curious why CFMX HashMap/Structs implementation is slower.
CFMX has a *lot* of other stuff going on, e.g., case insensitive keys, multiple scope lookup etc etc. Again, the issue isn't really whether one is slower than the other but whether the performance is good enough - don't waste time and energy optimizing something that really isn't a bottleneck (you didn't answer my questions about load testing and bottleneck analysis!).
Only Problem.. Other CF developers in the group..dont understand Java/Alot
of the
data structure conversions etc.. so i am forced to limit Native Java usage.
So, write the JavaBean Adapter / Iterator and then wrap that in a simple CFMX interface they are comfortable using - again, without actually converting the underlying data structure.
Nice Ride :)
Innit? :)
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
