igorbeslic/liferay-portal — comment on commit 867172bca71203143ce9d1bfc0d394481cd4dd13
File: portal-impl/src/com/liferay/portal/upload/UploadServletRequestImpl.java line 378
By igorbeslic:

I've removed checking presence in _regularParms as LinkedHashSet won't allow duplicates. I also did small performance tests with old and new code:
enu - 500000 different strings
_regularParams - 3000 strings (1500 present in enu)

Old stats: best(85) avg(97.97) worst(146)
New stats: best(73) avg(83.98) worst(126)