You need to sign in to do that
Don't have an account?
richardv
StringBuffer equivalent
Is there a StringBuffer equivalent for Apex? I don't see one in the API.
If there is no equivalent, could someone on the Apex Platform team shed some light on performance impacts of using + to append strings?
If there is no equivalent, could someone on the Apex Platform team shed some light on performance impacts of using + to append strings?
Jeremy Kraybill
Austin, TX
Can someone from the force.com development team please speak up on this? I was at Dreamforce and all of you said you monitor the forums - please prove it!
But regardless, you should run some tests and look at how much latency you are talking about. Even if you really have to do 5000 concatenations in VF, I ran a quick 3-line test in sandbox and was able to do 5000 concats in 2-3 seconds. This compares to about 5 seconds in Java on my local machine for the same operations. I really think you are fine.
I would encourage you to open an IdeaExchange idea to expose StringBuffer, since it should be very easy to do this based on what I know of the Apex infrastructure.
Jeremy Kraybill
Austin, TX