Skip to content

Server side compilation #6

@amlwwalker

Description

@amlwwalker

Hi again,

So I have evolved the plugin somewhat - or atleast the server side part so that it compiles code that is sent to it from the console. Its quite neat actually!

Anyway, on my server I have Arduino, Java and Ino (terminal arduino compilation program). Then I have a golang server that receives the code as a POST request, calls some (pretty ropey currently) bash scripts that compile the code. and return the hex to the plugin which in turn uploads it to the arduino.

I'll put it up here at some point, once I have ironed a couple of things out, but I wondered if you might have a suggestion as to why its so slow to compile.
The arduino envrioment compiles blink in about 3 seconds. It takes the server about 12.

Part 2:
To complicate things the server (actually ino I think) cant handle two requests simultaneously. So I fired up docker containers so for each compilation request it is done in a seperate Docker container. This gets over the problem of concurrent compilations, however doesnt solve the speed issue.....

Any ideas - I just thought you might have a suggestion....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions