New to Telerik UI for Blazor? Download free 30-day trial

Telerik SpreadStreamProcessing

This article briefly explains the specifics of RadSpreadStreamProcessing - what is spread streaming, how it works compared to the RadSpreadProcessing library and when to use it.

RadSpreadStreamProcessing is part of the Telerik Document Processing libraries. The full documentation for this component is available at https://docs.telerik.com/devtools/document-processing/libraries/radspreadstreamprocessing.

SpreadStreamProcessing Fast Export image

What is Spread Streaming?

Spread streaming is a document processing paradigm that allows you to create or read big spreadsheet documents with great performance and minimal memory footprint.

The key for the memory efficiency is that the spread streaming library writes the spreadsheet content directly to a stream without creating and preserving the spreadsheet document model in memory. Each time an exporter object is disposed, the set values are written into the stream. This allows you to create large documents with an excellent performance.

While reading, RadSpreadStreamProcessing parses only the required chunk of information. This ensures minimal use of application resources.

Key Features

Some of the features you can take advantage of are:

RadSpreadStreamProcessing vs. RadSpreadProcessing

The main differences between the two spreadsheet processing libraries include:

  • RadSpreadStreamProcessing writes directly into a stream, while RadSpreadProcessing creates models for the elements in the document. This is why the spread streaming library uses significantly less memory than RadSpreadProcessing.
  • RadSpreadStreamProcessing does not perform any formula or other layout-related calculations, which makes its file generation performance much better compared to RadSpreadProcessing.

When to Use RadSpreadStreamProcessing

You can use the RadSpreadStreamProcessing library to create or read large amount of data with a low memory footprint and great performance. You can also append data to an already existing document stream. The generated document can be exported directly to a file on the file system or to a stream (for example, to send it to the client).

When to Use RadSpreadProcessing

The RadSpreadProcessing library supports multiple features of the spreadsheet documents and enables you to perform different calculations on the data. To do that, the library keeps the whole document in its model in the memory of the application. If you are not dealing with huge files and the resources are not critical for the specific case, you can consider using RadSpreadProcessing as it doesn't have the limitations of the streaming model.

In this article