Almenon / Almenon/AREPL-backend

Execution takes far more time than it should

オープン
#2 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
14
フォーク
8
平均マージ
4日 19時間
マージ済み PR(30日)
4

説明

porting this issue over from [AREPL](https://github.com/Almenon/AREPL/issues/41)

```python
x = [[i for i in range(10000000)]]
```
Timings in ms:

List Size | Python Time | Total Time (py & JS)
------------ | ------------ | -------------
10^4 | 0 | 23
10^5 | 2.98 | 225
10^6 | 48.1 | 2363
10^7 | 489 | 24337

I'd be okay with a doubling or even tripling of the execution time but this is clearly rediculous. Only **~2%** of the execution time is actually spent executing the user's code. God knows what the computer is doing the rest of the time. Sipping martinis on the beach? 🏖️ 🍸

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。