Comments (3)
Thank for you the report. This looks like some out-of-date documentation. There are overloads of GetStream
that take an asContiguousBuffer
that should be used if you want to force it to come from the large pool. Otherwise, blocks are used.
from microsoft.io.recyclablememorystream.
Thank you for your reply.
I tried it as below.
The LargePoolFreeSize was still zero.
Is it the correct behavior?
private static readonly RecyclableMemoryStreamManager manager = new RecyclableMemoryStreamManager(int.MaxValue, int.MaxValue);
static void Main(string[] args)
{
using (var stream = manager.GetStream("256MB", 256 * 1024 * 1024, true)) { Print(); } // > DefaultBlockSize = 128KB
Print();
using (var stream = manager.GetStream("1GB", 1024 * 1024 * 1024, true)) { Print(); }
Print();
}
/* result *
LargePoolFreeSize=0, LargePoolInUseSize=268435456,
LargePoolFreeSize=0, LargePoolInUseSize=0,
LargePoolFreeSize=0, LargePoolInUseSize=1073741824,
LargePoolFreeSize=0, LargePoolInUseSize=0,
*/
from microsoft.io.recyclablememorystream.
This was due to the DefaultMaximumBufferSize setting (128MB).
It is solved. Thank you.
from microsoft.io.recyclablememorystream.
Related Issues (20)
- This repo is missing important files
- Add NET6 target HOT 3
- RecyclableMemoryStream.ToString should not throw if disposed HOT 2
- ArgumentNullException during Write HOT 1
- Enable nullable annotations and warnings HOT 4
- Change Target Framework from `net5.0` to `net6.0` HOT 3
- Reduce the number of Method/Constructor overloads. HOT 2
- Question about how to use Recyclable memory stream manager HOT 6
- RMS v3.0 Planning HOT 3
- NullReferenceException possible with M.IO.RecyclableMemoryStream.Dispose(true) HOT 1
- Using memory stream with httpClient post HOT 3
- Is there a plan to contribute to the dotnet/runtime? HOT 4
- FeatureRequest: Add opt-in possibility to zeroed-out buffers HOT 10
- Continous benchmarking HOT 1
- Multiple StreamManagers in referenced libraries - how to find total memory usage HOT 1
- Large pool limit should apply to whole pool, not each slot HOT 1
- Humanitarian Organization Team mbrgi
- ResponseTime is almost doubled with RecyclableMemoryStream. HOT 5
- Question: GetStream copy existing buffer use case HOT 1
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 microsoft.io.recyclablememorystream.