Comments (2)
I see next
* Adding non-generic IList to PooledList
So there is reason to add this stuff? I feel that having non generic interfaces may preclude some fancy type based optimizations in future.
I have never ever used non generic list as it is not type safe either.
I do not say that it will work or case to consider, but I now experimenting with JIT of static class per generic parameters which can be used for adhoc optimization and per type combination cache. Other generic options may go from safe usage of Unsafe. And why would I use non generic API to make things slower?
from collections.pooled.
I don't have much use for non-generic interfaces either, but I changed my mind about removing them. It's really not any extra effort to support them since that support is already present in the code I'm basing this stuff on in corefx.
Supporting the non-generic interfaces makes it possible to use these collections with legacy API's that don't support generics.
Having explicit interface implementations but not using them doesn't hurt performance in any way I can imagine. It makes for a DLL that's 1-2 KB larger than it would otherwise be, and that's about it. Unless there's a specific, provable scenario in which removing support for non-generic collection interfaces improves performance, I'm not really seeing a compelling case for doing so.
from collections.pooled.
Related Issues (20)
- Support for .NET Standard 2.1 HOT 15
- Disposing PooledDictionary doesn't dispose PooledList stored as values HOT 2
- Support for ObservableCollection HOT 6
- GC of boxing if key is struct HOT 1
- Aggressive optimization and inlining foor PooledList.Span HOT 5
- Retrieve Memory<T> from PooledList<T>
- Nested pooled collections crash the Visual Studio heap snapshot
- Resurrect rented buffers or arrays in finalyzer HOT 1
- Pooled Lookup
- Pooled Array
- PooledSet is generating GC when item gets removed HOT 1
- Add equivalent of CollectionsMarshal.GetValueRef for PooledDictionary.
- Why not implents INotifyCollectionChanged or provide a BindingVersion
- linq benefits from pooled? HOT 1
- Consider PooledSortedList
- Is the repos alive?
- How about call GC.SuppressFinalize(this) to prevent add to finalization queue.
- PooledDictionary.Remove with Count 0 = Exception HOT 1
- Upgrad and support .net 6 HOT 1
- GetValueRefOrAddDefault and GetValueRefOrNullRef support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collections.pooled.