Hadoop in Practice by Alex Holmes

Hadoop in Practice by Alex Holmes

Author:Alex Holmes
Language: eng
Format: epub, pdf


Regular Expressions

Regular expressions in Java have a rich and flexible feature set. But the flexibility comes at the price of execution speed. The slowness of regular expressions in Java were exposed in technique 45, where the profile showed that most of the time in your map was spent in the Pattern.split code. As a general guideline, it’s best to avoid regular expressions where possible in MapReduce applications. If they can’t be avoided outright, it’s still worth factoring out as many uses of them as possible.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.