You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Kay Kay (JIRA)" <ji...@apache.org> on 2008/12/19 20:21:44 UTC
[jira] Closed: (SOLR-913) org/apache/solr/handler/SnapPuller.java
- Expensive Pattern object made static (HttpClient object too )
[ https://issues.apache.org/jira/browse/SOLR-913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kay Kay closed SOLR-913.
------------------------
> org/apache/solr/handler/SnapPuller.java - Expensive Pattern object made static (HttpClient object too )
> ---------------------------------------------------------------------------------------------------------
>
> Key: SOLR-913
> URL: https://issues.apache.org/jira/browse/SOLR-913
> Project: Solr
> Issue Type: Improvement
> Components: replication (java)
> Environment: Tomcat 6, JRE 6
> Reporter: Kay Kay
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 1.4
>
> Attachments: SOLR-913.patch, SOLR-913.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> In the class - org.apache.solr.handler.SnapPuller - there seems to be an expensive Pattern object created locally in the method
> static Integer readInterval(String interval) ;
> Pattern instances are better created as static objects and reused.
> The same is true for HttpClient instances. These are one per core right now. We can make that static too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.