× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
aquaclusters.josekibold reported 2012-10-16T16:59:22Z  · tariqrahiman last modified 2012-11-07T18:46:59Z

Speed diff in writing large files to screen using \cat vs \grep & \tail


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - FluidShell
Version 12.0

When writing a large file (50 MB file in this test case) to screen in FluidShell there seems to be a quite noticeable difference between the time taken by the \cat command to finish (30 seconds as indicated by FS), versus the \grep and \tail commands (8 seconds in each case).

As described in the comments from #7586, the biggest part of the 30 seconds in case of the \cat command is taken by the "Swing EDT thread which is responsible for painting text on screen", however don't \grep and \tail use also the same thread for painting?

Test scenario:

*1 a 50 MB file containing a repeating sequence of two lines: first line contains random "Lorem ipsum" text of length 456 chars, second line being the following "   New line here."
*2 calling \cat 50mb > out OR \grep "" 50mb > out OR \tail -n +1 50mb > out takes about 1-2 seconds
*3 calling \cat 50mb | cat > out OR \grep "" 50mb | grep "" > out OR \tail -n +1 50mb | tail -n +1 > out takes about 8 seconds
*4 calling \cat 50mb takes about 30 seconds
*5 calling \grep "" 50mb OR \tail -n +1 50mb takes about 8 seconds

Issue #7803

Closed
Won't Fix
Resolved 2012-10-28T00:11:49Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017