This change improves performance by (1) Create a cacheing mechanism to cache frequent...
authorjia.shao.peng <jia.shao.peng@ee073f10-1060-11df-b6a4-87a95322a99c>
Thu, 20 May 2010 23:44:52 +0000 (23:44 +0000)
committerjia.shao.peng <jia.shao.peng@ee073f10-1060-11df-b6a4-87a95322a99c>
Thu, 20 May 2010 23:44:52 +0000 (23:44 +0000)
commita5894a2a48ec1481b64a24f1127b4eb54e069bcc
treef230335c6958fa6f48439e1f9e12bdcf77a0750a
parentaf0755d576c0fad1349c492563249bc9aadc8c60
This change improves performance by (1) Create a cacheing mechanism to cache frequently used cached regex (2) Precompile some known regexes. (3) Other misc improvements. It also (1) removes dependency to Guava library (2) creates new interfaces that accept parameters that could be reused instead of immutable ones.

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@21 ee073f10-1060-11df-b6a4-87a95322a99c
java/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
java/src/com/google/i18n/phonenumbers/RegexCache.java [new file with mode: 0644]
java/test/com/google/i18n/phonenumbers/AsYouTypeFormatterTest.java
java/test/com/google/i18n/phonenumbers/PhoneNumberUtilTest.java
java/test/com/google/i18n/phonenumbers/RegexCacheTest.java [new file with mode: 0644]