| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
There's also a couple of other things you can do to make this a LOT faster. If you're using JDK 1.5, you can use String.replace(CharSequence, CharSequence) instead of String.replaceAll(String, String). The reason is that String.replaceAll(String, String) uses regex which is very costly. In this case the pattern of characters that you're searching for is always going to be the same - "&" - so using regex is serious overkill. If you're not using JDK 1.5 you might try just using: url ="" "&").componentsJoinedByString("&"); Even though you're creating a temporary array it might still be faster than using regex. On Jul 30, 2007, at 12:47 PM, Alex Johnson wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >WOHyperlink, BOZO_AMPERSAND Revisited (From: Alex Johnson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.