Click here to Skip to main content
15,901,373 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The website Medium.com is a POS Pin
OriginalGriff16-Jul-21 19:21
mveOriginalGriff16-Jul-21 19:21 
GeneralRe: The website Medium.com is a POS Pin
swampwiz16-Jul-21 19:50
swampwiz16-Jul-21 19:50 
GeneralRe: The website Medium.com is a POS Pin
OriginalGriff16-Jul-21 20:38
mveOriginalGriff16-Jul-21 20:38 
GeneralRe: The website Medium.com is a POS Pin
BillWoodruff16-Jul-21 22:08
professionalBillWoodruff16-Jul-21 22:08 
GeneralRe: The website Medium.com is a POS Pin
Sander Rossel17-Jul-21 1:55
professionalSander Rossel17-Jul-21 1:55 
GeneralRe: The website Medium.com is a POS Pin
Slow Eddie17-Jul-21 2:45
professionalSlow Eddie17-Jul-21 2:45 
GeneralIt hurts my brain! So this is fun. And perhaps novel Pin
honey the codewitch16-Jul-21 12:45
mvahoney the codewitch16-Jul-21 12:45 
GeneralRe: It hurts my brain! So this is fun. And perhaps novel Pin
Gary R. Wheeler16-Jul-21 13:54
Gary R. Wheeler16-Jul-21 13:54 
I don't know if it helps, but:

We use zip compression in the file format for a logging application. Our approach to this problem is to compress incoming data until the size of the currently compressed content reaches or exceeds a given size (in our case, 64K). At that point we write the compressed size to the file followed by the compressed data.

When reading we do the reverse. Read the size, use the size to read the compressed data, decompress. While we don't need to create fixed size buffers on reading, you could alter our approach. While you're compressing incoming blocks, accumulate both the compressed and the uncompressed totals. When the uncompressed total reaches your decompression buffer size, output the compressed size and the compressed block. That would guarantee a limit to the size of the buffer you would have to allow for on incoming data.

This approach of course requires that you control both the compression and decompression handling of the data. If you can only control one, then this wouldn't apply.
Software Zen: delete this;

GeneralRe: It hurts my brain! So this is fun. And perhaps novel Pin
honey the codewitch16-Jul-21 14:21
mvahoney the codewitch16-Jul-21 14:21 
GeneralApple slips in sales ranking - again. Pin
OriginalGriff16-Jul-21 9:05
mveOriginalGriff16-Jul-21 9:05 
GeneralRe: Apple slips in sales ranking - again. Pin
PIEBALDconsult16-Jul-21 9:16
mvePIEBALDconsult16-Jul-21 9:16 
GeneralRe: Apple slips in sales ranking - again. Pin
Chris Maunder16-Jul-21 10:33
cofounderChris Maunder16-Jul-21 10:33 
GeneralRe: Apple slips in sales ranking - again. Pin
BillWoodruff16-Jul-21 22:23
professionalBillWoodruff16-Jul-21 22:23 
GeneralRe: Apple slips in sales ranking - again. Pin
abmv18-Jul-21 8:40
professionalabmv18-Jul-21 8:40 
GeneralRe: Apple slips in sales ranking - again. Pin
OriginalGriff18-Jul-21 8:44
mveOriginalGriff18-Jul-21 8:44 
GeneralTypescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 6:17
cofounderChris Maunder16-Jul-21 6:17 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 7:56
mvePIEBALDconsult16-Jul-21 7:56 
GeneralRe: Typescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 10:32
cofounderChris Maunder16-Jul-21 10:32 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 11:35
mvePIEBALDconsult16-Jul-21 11:35 
GeneralRe: Typescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 16:13
cofounderChris Maunder16-Jul-21 16:13 
GeneralRe: Typescript optimisation benchmarks Pin
Gary R. Wheeler16-Jul-21 10:37
Gary R. Wheeler16-Jul-21 10:37 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 11:25
mvePIEBALDconsult16-Jul-21 11:25 
GeneralRe: Typescript optimisation benchmarks Pin
Gary R. Wheeler16-Jul-21 13:43
Gary R. Wheeler16-Jul-21 13:43 
GeneralRe: Typescript optimisation benchmarks Pin
honey the codewitch16-Jul-21 13:00
mvahoney the codewitch16-Jul-21 13:00 
GeneralRe: Typescript optimisation benchmarks Pin
Jacquers16-Jul-21 20:58
Jacquers16-Jul-21 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   504 votes