facebook / facebook/hhvm

JIT performs extremely bad when setting many strings

Open
#7,705 8 comments 2 reactions 1 assignee Claimed by @mofarrell View on GitHub
performance
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version

3.12.11 and 3.18.1 were tested, it works reasonably well in 3.3

### Standalone code, or other way to reproduce the problem

See attached file: [strings.php.txt](https://github.com/facebook/hhvm/files/813713/strings.php.txt)

It does set 1000 strings to value which is returned by a function consuming string, see following snippet for example:

```php

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.