{"id":17040921,"url":"https://github.com/uggla/parse_quote","last_synced_at":"2025-08-21T16:25:24.576Z","repository":{"id":257017445,"uuid":"857098025","full_name":"uggla/parse_quote","owner":"uggla","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-19T09:09:59.000Z","size":912,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T01:38:02.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uggla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-13T19:53:08.000Z","updated_at":"2024-09-18T17:13:54.000Z","dependencies_parsed_at":"2024-10-14T09:10:56.557Z","dependency_job_id":"c8fb70e7-0cee-4ef9-8d83-536a2b0f0ce9","html_url":"https://github.com/uggla/parse_quote","commit_stats":null,"previous_names":["uggla/parse_quote"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uggla/parse_quote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fparse_quote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fparse_quote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fparse_quote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fparse_quote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uggla","download_url":"https://codeload.github.com/uggla/parse_quote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fparse_quote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271507452,"owners_count":24771824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T09:10:53.664Z","updated_at":"2025-08-21T16:25:24.080Z","avatar_url":"https://github.com/uggla.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse_quote\n\nThis code is my response to the Tsurucapital exercise. There is relatively\nlittle information about the performance levels to achieve. I focused more\non memory usage by employing streaming to limit consumption. As for the\nruntime, the program runs in under 150ms, so I didn't aim to optimize or\nuse parallelism. I also tried to handle errors cleanly.\n\nNotes:\n\nThe use of 'nom' might be a bit excessive, but I find that it helps with\nmaintaining the parser, and I quite like this library.\n\nI added serde and bincode and conducted a test to ensure the data structure\ncould be serialized. The original idea was to use chunked files and an\nexternal merge for handling very large files, especially if memory usage\nbecame a concern. However, since memory consumption remained low and there\nwas no precise information about file sizes, I decided not to implement\nthis approach. Based on current performance, I believe it can handle quite\nlarge files.\n\nI also admit I was a bit lazy, I did a bit of TDD, but I didn't write too\nmany unit tests. :)\nBut it deserved more unit tests with packets crafted with anomalies.\n\nhttps://www.tsurucapital.com/en/code-sample.html\n\n## Rust version used to build the binary\n\n```bash\nrustc --version\nrustc 1.81.0 (eeb90cda1 2024-09-04)\n```\n\n## Usage\n\n```bash\nUsage: parse_quote [OPTIONS] \u003cFILE\u003e\n\nArguments:\n  \u003cFILE\u003e  File argument (required)\n\nOptions:\n  -r             Optional flag to enable reordering of the packets according to quote accept time\n  -d...          Optional flag to enable debug. -ddd = trace, -dd = debug, -d = info, 0 = error\n  -h, --help     Print help\n  -V, --version  Print version\n```\n\n## Performance\n\n```bash\nCommand being timed: \"./target/release/parse_quote pcap/mdf-kospi200.20110216-0.pcap\"\nUser time (seconds): 0.04\nSystem time (seconds): 0.03\nPercent of CPU this job got: 53%\nElapsed (wall clock) time (h:mm:ss or m:ss): 0:00.15\nMaximum resident set size (kbytes): 8248\n```\n\n```bash\nCommand being timed: \"./target/release/parse_quote -r pcap/mdf-kospi200.20110216-0.pcap\"\nUser time (seconds): 0.01\nSystem time (seconds): 0.00\nPercent of CPU this job got: 95%\nElapsed (wall clock) time (h:mm:ss or m:ss): 0:00.02\nMaximum resident set size (kbytes): 8120\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Fparse_quote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuggla%2Fparse_quote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Fparse_quote/lists"}