Timeline for Counting words in files
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11, 2014 at 18:10 | history | edited | MORTAL |
edited tags
|
|
Dec 11, 2014 at 17:07 | vote | accept | MORTAL | ||
Dec 11, 2014 at 17:04 | comment | added | MORTAL |
@glampert .. exactly except that it stores each element from std::unordered_map that has all words which is return value from wordsInFile() function as shown above and assign by copy to a new std::unordered_map . yes, it can handle many files as well.
|
|
Dec 11, 2014 at 16:55 | comment | added | MORTAL |
@sp2danny .. you can use std::thread and std::mutex but std::future and std::async are type-safe buildin and easy to implement them in your code like i did
|
|
Dec 11, 2014 at 16:54 | answer | added | Edward | timeline score: 3 | |
Dec 11, 2014 at 14:57 | history | edited | Edward | CC BY-SA 3.0 |
fixed grammar of title
|
Dec 11, 2014 at 13:16 | comment | added | glampert |
BTW, the title should be either "Counting words in a file" (singular) or "Counting words in files" (plural). ;)
|
|
Dec 11, 2014 at 13:12 | comment | added | glampert |
If I get this right, you are counting the lines of each file in a separate task/tread (with async ), correct? Interesting idea to optimize batch processing of several files.
|
|
Dec 11, 2014 at 11:26 | comment | added | sp2danny | why are you using futures? | |
Dec 11, 2014 at 11:13 | history | edited | MORTAL | CC BY-SA 3.0 |
added 2 characters in body; edited title
|
Dec 11, 2014 at 9:00 | history | edited | 200_success | CC BY-SA 3.0 |
edited tags; edited title
|
Dec 11, 2014 at 8:57 | history | edited | Jamal | CC BY-SA 3.0 |
added 122 characters in body
|
Dec 11, 2014 at 8:54 | history | edited | MORTAL | CC BY-SA 3.0 |
added 330 characters in body
|
Dec 11, 2014 at 8:47 | history | asked | MORTAL | CC BY-SA 3.0 |