It's UWAweek 48


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.

 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

1:21pm Thu 12th May, Michael W.

Hi, grepping multiple times, esp if it relates to a file, can be very slow. Clearly the texts of the input files need to be transformed, and doing everything in one scripts is a recipe for disaster. Better a separation of concerns, as suggested by the Tips and Tricks section. However, at each stage unnecessary data is being ignored, so downstream computations will have less to do. Using Awk arrays can also be helpful. Bottom line. We have not covered that in class, and for many people in the class, it's their first experience of programming, so I'm really concerned here about gross inefficiency, which will be pretty evident because the code will be very slow. Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy