Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ogenreflect): add new runtime information package #661

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tdakkota
Copy link
Member

@tdakkota tdakkota commented Nov 8, 2022

No description provided.

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Base: 74.38% // Head: 74.43% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (dd89e14) compared to base (c4da0eb).
Patch coverage: 96.05% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #661      +/-   ##
==========================================
+ Coverage   74.38%   74.43%   +0.05%     
==========================================
  Files         176      179       +3     
  Lines       12734    12791      +57     
==========================================
+ Hits         9472     9521      +49     
- Misses       2781     2789       +8     
  Partials      481      481              
Impacted Files Coverage Δ
middleware/middleware.go 100.00% <ø> (ø)
ogenerrors/ogenerrors.go 14.28% <ø> (-1.10%) ⬇️
ogenreflect/parameter_map.go 100.00% <ø> (ø)
ogenreflect/runtime_operation.go 88.88% <ø> (ø)
gen/template_config.go 96.00% <96.00%> (ø)
gen/write.go 85.23% <100.00%> (-3.56%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tdakkota tdakkota force-pushed the feat/ogenreflect branch 8 times, most recently from f634bed to b5963b1 Compare November 11, 2022 10:03
@tdakkota tdakkota force-pushed the feat/ogenreflect branch 14 times, most recently from 0182d17 to fbd6eb8 Compare December 2, 2022 06:11
This is a workaround for `goimports`: it does not treat map lookup as missing package, unlike
field lookup of global variable.

Otherwise, `goimports` will try to search for the non-existing package and will check every
package in GOPATH/module cache. This leads to a very big slowdown.

Benchstat:
```
name                        old time/op    new time/op    delta
Generator/api.github.com-4     13.1s ± 1%      4.7s ± 2%  -64.10%  (p=0.000 n=13+15)
Generator/gotd_bot_api-4       8.63s ± 2%     0.91s ± 3%  -89.49%  (p=0.000 n=13+15)
Generator/tinkoff-4            7.96s ± 3%     0.17s ± 6%  -97.90%  (p=0.000 n=15+14)
Generator/manga-4              7.85s ± 2%     0.05s ± 6%  -99.38%  (p=0.000 n=14+14)

name                        old alloc/op   new alloc/op   delta
Generator/api.github.com-4    1.95GB ± 0%    1.48GB ± 0%  -24.32%  (p=0.000 n=15+14)
Generator/gotd_bot_api-4       710MB ± 1%     220MB ± 0%  -69.07%  (p=0.000 n=15+15)
Generator/tinkoff-4            537MB ± 2%      41MB ± 3%  -92.40%  (p=0.000 n=15+15)
Generator/manga-4              507MB ± 2%      11MB ± 2%  -97.87%  (p=0.000 n=15+15)

name                        old allocs/op  new allocs/op  delta
Generator/api.github.com-4     41.1M ± 0%     37.5M ± 0%   -8.63%  (p=0.000 n=15+13)
Generator/gotd_bot_api-4       9.86M ± 0%     6.02M ± 0%  -39.01%  (p=0.000 n=15+14)
Generator/tinkoff-4            5.01M ± 1%     1.15M ± 0%  -77.11%  (p=0.000 n=15+14)
Generator/manga-4              4.17M ± 1%     0.30M ± 0%  -92.82%  (p=0.000 n=15+15)
```
@tdakkota tdakkota force-pushed the feat/ogenreflect branch 2 times, most recently from b054200 to c158f72 Compare December 21, 2022 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant