BlockCompose | View composer and attribute builder | Content Management System library
kandi X-RAY | BlockCompose Summary
kandi X-RAY | BlockCompose Summary
View composer and attribute builder for Sage 10 and WordPress' Project Gutenberg editor.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register editor scripts .
- Set reusable block options .
- Compose the block .
- Register bindings from dir .
- Render block data .
- Format the bindings .
- Add the given data .
- Return response with content .
- Convert to array
BlockCompose Key Features
BlockCompose Examples and Code Snippets
Community Discussions
Trending Discussions on BlockCompose
QUESTION
I am generating a large Report pdf file using PDFClown using data from a database.
The process takes a very long time and eventually runs out of memory when the number of pages nears the 150 mark taking up more than 1.5GB of ram and with the error:
A first chance exception of type 'System.OutOfMemoryException' occurred in PDFClown.dll
Since I will need to regularly generate reports of over 1500 pages this is a major problem.
Is there anything I can do to:
- Not run out of memory (Necessary)
- Speed up the file creation (Ideally)
Please note: the reports generated (with smaller data sets) are accurate, although the file size is rather large.
Here is a sample of my code:
...ANSWER
Answered 2018-Jul-17 at 14:38The Function: ReportFonts.GetFont(...)
was creating a new font every single time it was called.
This font was then stored in the dll's memory space and the final file which was what was taking up so much space.
Used a Dictionary<> to solve the issue, not only is the memory space clean and the file size acceptable, but the execution time is also much improved.
Moving to 64-bit also helped somewhat.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install BlockCompose
Scaffolding: app/Blocks and config/editor.php.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page