in reply to Mojolicious Render Large Text File
How can show the file content to the users while the page still loading?
In short, handle it with javascript on the client side
mojolicious stream file -> The Advisory Boar: Mojolicious and HTTP streaming
my $res = `cat $file`;
99 times out of 100 you shouldn't do that, esp to slurp an entire file into memory ... which tends to take a lot of memory for large files
Crossposted at http://stackoverflow.com/questions/22780582/perl-mojolicious-render-large-text-file.
I cross-linked this cross-postings for maximum collaboration efficiency
|
|---|