{"thread":{"id":"45536","subject":"[PATCH v3 0/8] refactor the filter process code into a reusable module","startedAt":"2017-03-29T15:51:15Z","lastAt":"2017-03-29T15:51:15Z","messageCount":1,"participants":["Ben Peart"],"isPatch":true,"patchVersion":3,"patchTotal":8},"messages":[{"id":"315674","messageId":"20170329155040.31224-1-benpeart@microsoft.com","threadId":"45536","inReplyTo":null,"subject":"[PATCH v3 0/8] refactor the filter process code into a reusable module","fromName":"Ben Peart","fromEmail":"peartben@gmail.com","sentAt":"2017-03-29T15:50:32Z","receivedAt":"2017-03-29T15:51:15Z","isPatch":true,"sender":{"key":"benpeart@microsoft.com","avatar":"https://avatars.githubusercontent.com/u/15252029?v=4"},"body":"Refactor the filter.<driver>.process code into a separate sub-process\nmodule that can be used to reduce the cost of starting up a sub-process\nfor multiple commands.  It does this by keeping the external process\nrunning and processing all commands by communicating over standard input\nand standard output using the packet format (pkt-line) based protocol.\nFull documentation is in Documentation/technical/api-sub-process.txt.\n\nThis code is refactored from:\n\n\tCommit edcc85814c (\"convert: add filter.<driver>.process option\", 2016-10-16)\n\tkeeps the external process running and processes all commands\n\n\nBen Peart (8):\n  pkt-line: add packet_writel() and packet_read_line_gently()\n  convert: Update convert to use new packet_writel() function\n  convert: Split start_multi_file_filter into two separate functions\n  convert: Separate generic structures and variables from the filter\n    specific ones\n  convert: Update generic functions to only use generic data structures\n  convert: rename reusable sub-process functions\n  sub-process: move sub-process functions into separate files\n  convert: Update subprocess_read_status to not die on EOF\n\n Documentation/technical/api-sub-process.txt |  54 ++++++++++\n Makefile                                    |   1 +\n convert.c                                   | 159 +++++-----------------------\n pkt-line.c                                  |  31 ++++++\n pkt-line.h                                  |  11 ++\n sub-process.c                               | 120 +++++++++++++++++++++\n sub-process.h                               |  46 ++++++++\n 7 files changed, 292 insertions(+), 130 deletions(-)\n create mode 100644 Documentation/technical/api-sub-process.txt\n create mode 100644 sub-process.c\n create mode 100644 sub-process.h\n\n-- \n2.12.1.gvfs.1.18.ge47db72\n\n"}]}