Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
3538d3e
Completed the first round of code optimization.
shengyanli1982 Jan 9, 2025
80eff9e
Completed the second round of code optimization.
shengyanli1982 Jan 9, 2025
23f7bf0
Completed the third round of code optimization.
shengyanli1982 Jan 9, 2025
994f8d9
Completed the fourth round of code optimization.
shengyanli1982 Jan 9, 2025
0da7893
Completed the 5th round of code optimization.
shengyanli1982 Jan 9, 2025
56d6709
Add the github action code
shengyanli1982 Jan 9, 2025
1d64c30
Fix action bug.
shengyanli1982 Jan 9, 2025
9fd3588
Update the README file.
shengyanli1982 Jan 9, 2025
cdd562a
Merge pull request #1 from shengyanli1982/dev
shengyanli1982 Jan 9, 2025
9644a03
Refine annotated information.
shengyanli1982 Jan 9, 2025
03e9373
Remove sync.Map from struc.go to rationalize memory usage.
shengyanli1982 Jan 9, 2025
eafa5d2
Optimize internal call function naming.
shengyanli1982 Jan 9, 2025
076ec82
Temporarily remove the Field object pool from use.
shengyanli1982 Jan 9, 2025
07f195c
Fix bugs and remove redundant code.
shengyanli1982 Jan 9, 2025
b084ebf
Merge pull request #2 from shengyanli1982/dev
shengyanli1982 Jan 9, 2025
535e8d3
Field object pooling development.
shengyanli1982 Jan 11, 2025
1175854
Optimize the Clone function of Fields. Reduce memory consumption.
shengyanli1982 Jan 11, 2025
ffc6e27
Optimize code variable naming and comment information.
shengyanli1982 Jan 11, 2025
114d5cd
Merge pull request #3 from shengyanli1982/dev
shengyanli1982 Jan 11, 2025
d6d2835
Update README content to correct code noncompliance.
shengyanli1982 Jan 16, 2025
4fa65b1
Optimize test cases and reduce test code complexity.
shengyanli1982 Jan 16, 2025
eca501a
Optimize flelds.go use cases to reduce test code complexity.
shengyanli1982 Jan 16, 2025
15e5a70
Optimize parse.go use cases to reduce test code complexity.
shengyanli1982 Jan 16, 2025
5d104a7
Optimize code and refine comment information.
shengyanli1982 Jan 16, 2025
cee69f2
Merge pull request #4 from shengyanli1982/dev
shengyanli1982 Jan 16, 2025
7fcc349
Optimize the efficiency of code execution, and the benchmark test has…
shengyanli1982 Jan 16, 2025
2d9df1e
Optimize the code structure in the file.
shengyanli1982 Jan 16, 2025
ea54534
Update the README.
shengyanli1982 Jan 16, 2025
57f1d92
Update benchmark test results in README.
shengyanli1982 Jan 16, 2025
ff6c337
Initially change the reflection to something related to unsafe.
shengyanli1982 Jan 17, 2025
550b64b
Fix missing functions.
shengyanli1982 Jan 17, 2025
5809204
Add the unsafe function.
shengyanli1982 Jan 17, 2025
fdf0122
Optimize internal calls to subfunctions
shengyanli1982 Jan 17, 2025
e5ccf05
Optimize internal calls to subfunctions
shengyanli1982 Jan 17, 2025
d262b4f
Further optimize unnecessary calls to reflect.New and reflect.MakeSlice.
shengyanli1982 Jan 17, 2025
fad8de8
Optimize and improve efficiency.
shengyanli1982 Jan 17, 2025
cb7fcd4
Remove unnecessary reflect.New from fields.
shengyanli1982 Jan 17, 2025
592407c
Improve comments, update README.
shengyanli1982 Jan 17, 2025
efc78f2
Optimize the memory allocation method to improve the overall executio…
shengyanli1982 Jan 18, 2025
dc2c43f
No packerCache is required for cleanup.
shengyanli1982 Jan 18, 2025
98bb6aa
Update the README content.
shengyanli1982 Jan 18, 2025
84e0107
Update where README is expressed and written incorrectly.
shengyanli1982 Jan 18, 2025
cc48f78
Update where README is expressed and written incorrectly.
shengyanli1982 Jan 18, 2025
1442d5c
Update performance test data.
shengyanli1982 Jan 18, 2025
1dba7f2
Fix possible bugs in BytesSlicePool.
shengyanli1982 Jan 18, 2025
2af4396
Update the README to put more emphasis on situations where internal c…
shengyanli1982 Jan 18, 2025
36c81e0
Updated the README content with a more detailed explanation of the me…
shengyanli1982 Jan 18, 2025
d50b167
Added go struct tag explanation content.
shengyanli1982 Jan 18, 2025
15373b7
Improve the function, complete the code, update the README content.
shengyanli1982 Jan 18, 2025
6882157
Increased performance analysis capabilities.
shengyanli1982 Jan 19, 2025
73f626a
Added a system core method to help convert defined structs to python …
shengyanli1982 Jan 19, 2025
57c6583
Added a performance test for GetFormatString.
shengyanli1982 Jan 19, 2025
39f8d5e
Enhanced format test cases.
shengyanli1982 Jan 19, 2025
e04a8ae
Fix a BUG in Format's formatting code.
shengyanli1982 Jan 19, 2025
863ffd1
Optimize the GetFormatString function.
shengyanli1982 Jan 19, 2025
4619508
Improve FormatTestNested test model.
shengyanli1982 Jan 19, 2025
ec1f2e2
Updated benchmark performance test case writing.
shengyanli1982 Jan 20, 2025
569f863
Perfect field String output test cases.
shengyanli1982 Jan 20, 2025
4f4922a
Optimize the buffer in the GetFormatString code, using a uniform sync…
shengyanli1982 Jan 20, 2025
81aad24
Update performance test results.
shengyanli1982 Jan 20, 2025
e25dcaf
Update the License content.
shengyanli1982 Jan 20, 2025
25574b3
Very small optimization in the GetSlice function.
shengyanli1982 Jan 20, 2025
9c0d60d
Add a logo to the project.
shengyanli1982 Jan 21, 2025
6093995
Fixes bugs in BytesSlicePool code.
shengyanli1982 Jan 21, 2025
08dbe31
Optimize code for efficient execution.
shengyanli1982 Jan 26, 2025
ed7d572
Optimize pool execution efficiency.
shengyanli1982 Jan 26, 2025
6d33b32
Update performance test results in README.
shengyanli1982 Jan 26, 2025
2828572
Optimize code execution efficiency.
shengyanli1982 Jun 14, 2025
66eacf1
Optimize comments in your code to keep useful ones.
shengyanli1982 Jun 14, 2025
39caf54
Change the name of one piece of code.
shengyanli1982 Jun 14, 2025
83db91c
Optimize the code architecture design
shengyanli1982 Oct 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches: ["dev"]
pull_request:
branches: ["main"]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v4
with:
go-version: "${{ matrix.go-version }}"
- uses: actions/checkout@v3
- name: Test
run: go mod tidy && go test -v ./...
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
# go.work
go.work.sum

.vscode/
.idea/
.DS_Store
.cursorrules
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) 2015 Ryan Hileman
MIT License

Copyright (c) 2025 Kuma (路口 IT 大叔)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -7,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading