Jivi-this-side commented on issue #1201:
URL: https://github.com/apache/lucenenet/issues/1201#issuecomment-3392919260

   Hello @paulirwin sir!
   I went through the issue details and :
   
https://github.com/apache/lucenenet/blob/5b487018599ae7ab064f628fbdc9f1f5df6dc6e4/src/Lucene.Net/Util/DoubleBarrelLRUCache.cs#L46
   
   If I’m understanding correctly, this task involves updating private fields 
(and possibly local variables) that currently use interface types like 
`IDictionary<TKey, TValue>` or `IList<T>` to instead use their concrete 
implementations (e.g., Dictionary<TKey, TValue>, List<T>, etc.) — while keeping 
public contracts unchanged.
   
   ```
   // Before
   private readonly IDictionary<string, object> cache1;
   
   // After
   private readonly Dictionary<string, object> cache2; // LUCENENET: CA1859 - 
Use concrete types when possible for improved performance
   
   ``` 
   If this understanding is correct, I’d be happy to work on this improvement. 
Please let me know if you’d like me to start with the collections in this file 
or across other similar areas as well.
   
   Thank you! 🙌


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to