Almenon / Almenon/AREPL-backend

Execution takes far more time than it should

未关闭
#2 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
14
派生
8
平均合并
4 天 19 小时
30 天内合并 PR
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 摘要。