Comments (2)
Writing to OutputBuffers
would not keep a stanza together when writing to stdout
since lines are written independently of each other and may be flushed before a stanza is completely written into a buffer.
Creating a per-work-item buffer does not work because that would involve predicting how much space any directory might need for storing all of its entries.
Printing the data twice (first time to get the size of each line, second to do the actual print) would still not keep the data together, and prints the data twice. Storing the data into a list and printing after processing all of the d_entries
would fix this, but would add many allocations/deallocations and extra code.
Forcing gufi_dir2trace
to write to separate files is probably the cleanest solution, since there would be little extra code, and the user would only have to cat
the files together.
from gufi.
#55 overallocates the amount of memory needed by assuming every single value in a struct work
prints to the maximum string length possible, writes each line into a per-work-item buffer (not OutputBuffers
, and write out after the stanza is complete. Locking is done around the write if no output file prefix was specified.
from gufi.
Related Issues (20)
- Issues with folders with spaces HOT 3
- How to update the metadata? HOT 6
- Memory usage/leak HOT 23
- Special characters in file/path names HOT 3
- Issue with gufi_ls HOT 4
- FEATURE REQUEST: Add totzero to the vrsummary table HOT 5
- FEATURE REQUEST: gufi_stats -c dirsize-log2-bins HOT 3
- totsubdirs in summary tables HOT 6
- Longitudinal Study: Phase 1 HOT 6
- Longitudinal Study: Phase 2 HOT 6
- query to get Big directories with the help of GUFI db HOT 3
- Installation instructions are unclear
- Cleanup OSX regression test gufi_stat and verifytrace HOT 1
- Is there any way to update existing index directory?
- googletest causes builds to fail
- gufi_find uses DEFAULT_CONFIG_PATH which isn't defined
- Exclude .snapshot[s] directories eg GPFS HOT 1
- Issue with gufi_find command HOT 10
- gufi does not escape paths with special chars HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gufi.