Performance Optimizing Rust Programming.
- or -
Post a project like this$34/hr
- Posted:
- Proposals: 3
- Remote
- #3428867
- Expired
Description
Experience Level: Expert
Estimated project duration: 1 - 2 weeks
As indicated with title, I am in need of a Rust programmer who can proficiently write and benchmark a few examples of asynchronous coding within a simple string processing, and subsequent http posting, context.
We need to build a string (based on args of strings that, themselves, represent parts of a complete concatenated string) into a valid processed string for http posts and, subsequently, send an http post request with that built string. Doing all of the aforementioned as fast as possible.
Async methods are needed because a second string must be processed and sent before receiving the reqwest response of the first.
Finally, conditional on if both http requests have been accepted by the server (as indicated by a server-side response) we are to process two final strings and send them , as well.
All of the above should be implemented via a single function call (please note that the provided script currently breaks the task into two functions), but invoked helper functions are ok to use (so long as they don't make execution any slower). Your final product will be placed within a loop, so please make sure that subsequent calls into your function does not lead to errors (e.g., make sure to properly clean up or drop memory of created structs, etc).
Multiprocessing is not an option as work is restricted to a single process. Moreover, the manipulations of the strings in question are basic, and already accomplished: the predominant focus is on performance optimization for fastest execution speed possible.
Please note that generating valid http post requests is not your interest here, given the sensitive use of public and private keys - they will not be provided. Assume the final string generated in prep_order is valid (please see the attached script ). Your task is to build on, and optimize this script. To write and benchmark alternative scripts in order to find the greatest speed optimized code: starting at the function call that passes string headers for building the complete string to immediately after the post request, of the first order, has been executed.
We need to build a string (based on args of strings that, themselves, represent parts of a complete concatenated string) into a valid processed string for http posts and, subsequently, send an http post request with that built string. Doing all of the aforementioned as fast as possible.
Async methods are needed because a second string must be processed and sent before receiving the reqwest response of the first.
Finally, conditional on if both http requests have been accepted by the server (as indicated by a server-side response) we are to process two final strings and send them , as well.
All of the above should be implemented via a single function call (please note that the provided script currently breaks the task into two functions), but invoked helper functions are ok to use (so long as they don't make execution any slower). Your final product will be placed within a loop, so please make sure that subsequent calls into your function does not lead to errors (e.g., make sure to properly clean up or drop memory of created structs, etc).
Multiprocessing is not an option as work is restricted to a single process. Moreover, the manipulations of the strings in question are basic, and already accomplished: the predominant focus is on performance optimization for fastest execution speed possible.
Please note that generating valid http post requests is not your interest here, given the sensitive use of public and private keys - they will not be provided. Assume the final string generated in prep_order is valid (please see the attached script ). Your task is to build on, and optimize this script. To write and benchmark alternative scripts in order to find the greatest speed optimized code: starting at the function call that passes string headers for building the complete string to immediately after the post request, of the first order, has been executed.
Pablo G.
100% (7)Projects Completed
3
Freelancers worked with
2
Projects awarded
80%
Last project
30 Nov 2020
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies