zylog
zylog
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
true 😄
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
but I think they should have made it more like Rent(16) , Rent(32) , Rent(64) ... etc instead of Rent(int) >>> this sends the wrong message that we could send an array of length 14 or 15 which is not true
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
yeah that make sense now :D, thanks a lot 🙂
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
I see, so we got to be aware of the length of the array with send and make sure that we return it otherwise, we would have some performance impact.
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
so basically, Rent(17-32) are the same .. they should have made it that simple
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
yeah , so my data needed 30+ so I lied in the middle Rent(32)
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
oh shit I got it ... Rent() has fixed values , and @TeBeConsulting @gerard was right , its just not large enough for the data I was trying to send but the fixed value part was the surprise for me Example Rent(1), Rent(2), Rent(3), Rent(4), Rent(5), ... Rent(16) all have the same array length (16) and Rent(17), Rent(18), Rent(19), Rent(20), Rent(21), ... Rent(32) all have the same array length (32) and Rent(33), Rent(34), Rent(35), Rent(36), Rent(37), ... Rent(64) all have the same array length (64)
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
I'll return with an update if I got anything useful
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
@gerard Thanks a lot 🙂 @TeBeConsulting Thanks 🙂
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
I think I get what u meant. I dont wanna bother u any longer , let me do few debugs and try to make sense of what exactly in the buffer and how long is it and I'd return with an update if i figured it out , but you said kinda make sense but also I feel I need to learn how pool array works in depth
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
maybe that is the issue, the current array that im renting from isnt big enough maybe.
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
oh , but I thought we are defining the minimum not the maximum value of the array, isnt that right ?
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
I think adding a bigger minimum value for Rent() should be enough hint to the problem , maybe there is buffer hanging somewhere that hasnt returned yet ?
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
fair
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
there is no repro, its private contract.
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
@gerard im just updating a program that isnt mine the original code had only string and it was Rent(5) == > that was working very well. but not I've added a bool and 4 other Integers ( to be converted to Enum on the client side later ) I couldnt leave Rent(5) as its because of the error , and when I raise it above 18 (aka: Rent(18) ) it works what could be the issue ?
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
should I not include the rent part of the code and let the program ?
104 replies
CC#
Created by zylog on 1/25/2023 in #help
✅ [[QUESTION]] HOW TO CALCULATE THE Rent(int) property for System.Buffers.ArrayPool<byte> ?
true , I understand I cant share the entire server just to debug that, no one has the time , Im just fishing for what could be the common causes
104 replies