Skip to content

Commit

Permalink
builts alternative python intr builds
Browse files Browse the repository at this point in the history
pyston has been the default python used in cryptobot until the pyston
team decided to move their efforts into pyston-lite.
Shortly after, python 3.11 was released, with that cryptobot switched to
use 3.11 as the pyston future is well, dead?
My local testing shows me that 3.11 is actually a bit slower on certain
workloads that the bot uses, the largest blob of time is the mix of
ungzipping, and the split of the price.log into symbol, date, price.
For some reason pyston is still the fastest implementation for this kind
of workload.
On my local benchmarks for a set of test local test runs,
3.11 takes 4s for a local test run, while pyston takes 3s. With 3.10
slightly below 4s.

This PR adds docker tag builds for the :pyston and :pypy alongside the
:latest tag.
This will allow to consume a :pyston tag if someone wants the fastest
build for backtesting runs. I know I do.
  • Loading branch information
Azulinho committed Jan 5, 2023
1 parent 4141f53 commit 142181f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_tag_cryptobot_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,47 @@ jobs:
labels: ${{ steps.meta_cryptobot_img.outputs.labels }}
push: true
no-cache: true

- name: sets python version to pyston
run: |
echo pyston-2.3.5 > .python-version
- name: Docker meta ALT pyston cryptobot image
id: meta_alt_pyston_cryptobot_img
uses: docker/metadata-action@v3
with:
images: ghcr.io/azulinho/cryptobot
tags: |
type=raw,value=pyston
- name: Push ALT pyston to GitHub Packages
uses: docker/build-push-action@v2
with:
tags: ${{ steps.meta_cryptobot_img.outputs.tags }}
labels: ${{ steps.meta_cryptobot_img.outputs.labels }}
push: true
no-cache: false


- name: sets python version to pypy
run: |
echo pypy3.9-7.3.11 > .python-version
- name: Docker meta ALT pypy cryptobot image
id: meta_alt_pypy_cryptobot_img
uses: docker/metadata-action@v3
with:
images: ghcr.io/azulinho/cryptobot
tags: |
type=raw,value=pypy
- name: Push ALT pypy to GitHub Packages
uses: docker/build-push-action@v2
with:
tags: ${{ steps.meta_cryptobot_img.outputs.tags }}
labels: ${{ steps.meta_cryptobot_img.outputs.labels }}
push: true
no-cache: false



0 comments on commit 142181f

Please sign in to comment.