Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
pippocao committed Dec 30, 2024
2 parents 008fc50 + 4e429ce commit 16528ca
Show file tree
Hide file tree
Showing 271 changed files with 3,841 additions and 13,266 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Changelog
## [v1.4.8] - 2024-12-20
- **Bug fix**: [Support for multi-byte character paths on Windows and long paths across platforms](https://github.com/Tencent/BqLog/issues/37), resolving issues with paths exceeding 256 bytes on all platforms.

## [v1.4.7] - 2024-11-15
- **Bug fix**: [Enabling mmap on Android Devices May Cause Freezes or Crashes](https://github.com/Tencent/BqLog/issues/34), mmap recover feature is reopen.

# Changelog
## [v1.4.6] - 2024-11-15
- **Bug fix**: [mmap is not working on linux](https://github.com/Tencent/BqLog/issues/25)
- **Bug fix**: [static initialization order fiasco](https://github.com/Tencent/BqLog/issues/26)
Expand Down Expand Up @@ -33,4 +35,4 @@ We have to temporarily disable the mmap recover feature until we can resolve its
- **Bug fix**: Fix the issue where JNI_Onload sometimes is not called.

## [v1.4.0] - 2024-08-03
- **First Release**
- **First Release**
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BqLog(扁鹊日志)(V 1.4.7) ([ChangeLog](/CHANGELOG.md))
# BqLog(扁鹊日志)(V 1.4.8) ([ChangeLog](/CHANGELOG.md))
[![license](https://img.shields.io/badge/license-APACHE2.0-brightgreen.svg?style=flat)](https://github.com/Tencent/BqLog/blob/main/LICENSE.txt)
[![Release Version](https://img.shields.io/badge/release-1.4.7-red.svg)](https://github.com/Tencent/BqLog/releases)
[![Release Version](https://img.shields.io/badge/release-1.4.8-red.svg)](https://github.com/Tencent/BqLog/releases)
> [中文文档](./README_CHS.md)
> BqLog is a lightweight, high-performance logging system used in projects such as "Honor of Kings," and it has been successfully deployed and is running smoothly.
> ***Version 1.5.x of BqLog is on its way! Originating from mobile clients, this new version of BqLog can achieve more than double the performance on desktop and server devices by lifting some memory usage restrictions.***
Expand Down
4 changes: 2 additions & 2 deletions README_CHS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BqLog(扁鹊日志)(V 1.4.7) ([ChangeLog](/CHANGELOG.md))
# BqLog(扁鹊日志)(V 1.4.8) ([ChangeLog](/CHANGELOG.md))
[![license](https://img.shields.io/badge/license-APACHE2.0-brightgreen.svg?style=flat)](https://github.com/Tencent/BqLog/blob/main/LICENSE.txt)
[![Release Version](https://img.shields.io/badge/release-1.4.7-red.svg)](https://github.com/Tencent/BqLog/releases)
[![Release Version](https://img.shields.io/badge/release-1.4.8-red.svg)](https://github.com/Tencent/BqLog/releases)
> BqLog是一个轻量级,高性能日志系统,应用于《Honor Of Kings》等项目,已经上线并良好运行
> ***BqLog的1.5.x版本正在路上,BqLog源自移动客户端,在桌面和服务器设备上,该新版本BqLog可以通过放开部分内存使用限制达到成倍以上的性能提高。***
> ***BqLog的1.5.x版本正在路上,即将提供对纯血鸿蒙的支持。***
Expand Down
Binary file modified bin/tools/linux32/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/linux32/BqLog_LogDecoder
Binary file not shown.
Binary file modified bin/tools/linux64/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/linux64/BqLog_LogDecoder
Binary file not shown.
Binary file modified bin/tools/mac/Debug/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/mac/MinSizeRel/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/mac/MinSizeRel/BqLog_LogDecoder
Binary file not shown.
Binary file modified bin/tools/mac/RelWithDebInfo/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/mac/RelWithDebInfo/BqLog_LogDecoder
Binary file not shown.
Binary file modified bin/tools/mac/Release/BqLog_CategoryLogGenerator
Binary file not shown.
Binary file modified bin/tools/win64/Debug/BqLog_CategoryLogGenerator.exe
Binary file not shown.
Binary file modified bin/tools/win64/Debug/BqLog_CategoryLogGenerator.pdb
Binary file not shown.
Binary file modified bin/tools/win64/Debug/BqLog_LogDecoder.exe
Binary file not shown.
Binary file modified bin/tools/win64/Debug/BqLog_LogDecoder.pdb
Binary file not shown.
Binary file modified bin/tools/win64/MinSizeRel/BqLog_CategoryLogGenerator.exe
Binary file not shown.
Binary file modified bin/tools/win64/MinSizeRel/BqLog_LogDecoder.exe
Binary file not shown.
Binary file modified bin/tools/win64/RelWithDebInfo/BqLog_CategoryLogGenerator.exe
Binary file not shown.
Binary file modified bin/tools/win64/RelWithDebInfo/BqLog_CategoryLogGenerator.pdb
Binary file not shown.
Binary file modified bin/tools/win64/RelWithDebInfo/BqLog_LogDecoder.exe
Binary file not shown.
Binary file modified bin/tools/win64/RelWithDebInfo/BqLog_LogDecoder.pdb
Binary file not shown.
Binary file modified bin/tools/win64/Release/BqLog_CategoryLogGenerator.exe
Binary file not shown.
Binary file modified bin/tools/win64/Release/BqLog_LogDecoder.exe
Binary file not shown.
Binary file modified dist/dynamic_lib/android/arm64-v8a/Debug/libBqLog.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/arm64-v8a/Debug/libBqLog_Symbol.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/arm64-v8a/MinSizeRel/libBqLog.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/arm64-v8a/MinSizeRel/libBqLog_Symbol.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/armeabi-v7a/Debug/libBqLog.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/armeabi-v7a/Debug/libBqLog_Symbol.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/armeabi-v7a/MinSizeRel/libBqLog.so
Binary file not shown.
Binary file not shown.
Binary file modified dist/dynamic_lib/android/x86_64/Debug/libBqLog.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/x86_64/Debug/libBqLog_Symbol.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/x86_64/MinSizeRel/libBqLog.so
Binary file not shown.
Binary file modified dist/dynamic_lib/android/x86_64/MinSizeRel/libBqLog_Symbol.so
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "bq_common/types/array.h"
#include "bq_common/types/string.h"
#include "bq_common/types/hash_map.h"
#include "bq_common/types/optional.h"
#include "bq_common/types/basic_types.h"
#if defined(BQ_GCC)
#pragma GCC diagnostic pop
Expand Down
309 changes: 0 additions & 309 deletions dist/dynamic_lib/include/bq_common/types/optional.h

This file was deleted.

13 changes: 12 additions & 1 deletion dist/dynamic_lib/include/bq_common/types/string_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ namespace bq {
if (0 == len2) {
return nullptr;
}
auto len1 = ___string_len(str1);
const CHAR_TYPE* begin_pos = ___find_char(str1, *str2);
while (begin_pos) {
while (begin_pos && begin_pos + len2 <= str1 + len1) {
if (memcmp(begin_pos, str2, len2 * sizeof(CHAR_TYPE)) == 0) {
return begin_pos;
}
Expand Down Expand Up @@ -268,6 +269,13 @@ namespace bq {
template <typename CHAR_TYPE>
inline bool string_base<CHAR_TYPE>::operator==(const typename string_base<CHAR_TYPE>::char_type* str) const
{
size_t compare_size = str ? ___string_len(str) : 0;
if (compare_size != size()) {
return false;
}
if (compare_size == 0) {
return true;
}
int32_t compare = memcmp(c_str(), str, size() * sizeof(CHAR_TYPE));
if (compare != 0) {
return false;
Expand All @@ -281,6 +289,9 @@ namespace bq {
if (size() != str.size()) {
return false;
}
if (size() == 0) {
return true;
}
return (memcmp(c_str(), str.c_str(), size() * sizeof(CHAR_TYPE)) == 0);
}

Expand Down
Binary file not shown.
Loading

0 comments on commit 16528ca

Please sign in to comment.