- String statement has no effect - but was a "docstring" for a global variable
- Consider f-string instead of manual format...
- Consider
x not in {a, b}
instead ofx != a and x != b
- Consider
raise NewException( ... ) from OldException
- NamedTemporaryFile/urlopen/subprocess.Popen() - consider context manager - NamedTemporaryFile should have been!
- Catching too wide exception type - Exception - bleh...
- Override changes number of args.
- Tuple unpacking - unused variables should be
_
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 "foo.cpp" | |
# 1 "<built-in>" 1 | |
# 1 "<built-in>" 3 | |
# 462 "<built-in>" 3 | |
# 1 "<command line>" 1 | |
# 1 "<built-in>" 2 | |
# 1 "/usr/include/gentoo/fortify.h" 1 | |
# 3 "/usr/include/gentoo/fortify.h" 3 | |
# 2 "<built-in>" 2 | |
# 1 "/usr/include/gentoo/maybe-stddefs.h" 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/README.md b/README.md | |
index 12fd01a1..b9c73b88 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -391,7 +391,7 @@ The following additional language support options are available: | |
and add `--cs-completer` when calling `install.py`. | |
- Go support: install [Go][go-install] and add `--go-completer` when calling | |
`install.py`. | |
-- JavaScript and TypeScript support: install [Node.js and npm][npm-install] and | |
+- JavaScript and TypeScript support: install [Node.js 18+ and npm][npm-install] and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clangd: /home/bstaletic/work/llvm-project-16.0.6.src/llvm/include/llvm/Support/Casting.h:663: decltype(auto) llvm::dyn_cast(From*) [with To = clang::TranslationUnitDecl; From = clang::Decl]: Assertion `detail::isPresent(Val) && "dyn_cast on a non-existent value"' failed. | |
#0 0x0000558e24f956e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/bstaletic/work/llvm-project-16.0.6.src/llvm/lib/Support/Unix/Signals.inc:567:22 | |
#1 0x0000558e24f95aa8 PrintStackTraceSignalHandler(void*) /home/bstaletic/work/llvm-project-16.0.6.src/llvm/lib/Support/Unix/Signals.inc:641:1 | |
#2 0x0000558e24f93297 llvm::sys::RunSignalHandlers() /home/bstaletic/work/llvm-project-16.0.6.src/llvm/lib/Support/Signals.cpp:104:20 | |
#3 0x0000558e24f95045 SignalHandler(int) /home/bstaletic/work/llvm-project-16.0.6.src/llvm/lib/Support/Unix/Signals.inc:412:1 | |
#4 0x00007fb900964d20 (/lib64/libc.so.6+0x38d20) | |
#5 0x00007fb9009b241c __pthread_kill_implementation /var/tmp/portage/sys-libs/glibc-2.37-r4/work/glibc-2.37/nptl/pthread_kill.c:44:76 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o | |
In file included from /home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/cpp/ycm/CodePoint.cpp:51: | |
/home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/cpp/ycm/UnicodeTable.inc:16: warning: unpaired UTF-8 bidirectional control character detected [-Wbidi-chars=] | |
16 | {{"\x00","<U+0001>","<U+0002>","<U+0003>","<U+0004>","<U+0005>","<U+0006>","<U+0007>","<U+0008>"," ","\n","<U+000B>","<U+000C>","\r","<U+000E>","<U+000F>","<U+0010>","<U+0011>","<U+0012>","<U+0013>","<U+0014>","<U+0015>","<U+0016>","<U+0017>","<U+0018>","<U+0019>","\x1a","<U+001B>","<U+001C>","<U+001D>","<U+001E>","<U+001F>","!","\"","#","%","&","'","(",")","*",",","-",".","/",":",";","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","_","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","}","<U |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FUNCTION traces#cmdl_leave() | |
Defined: ~/.vim/pack/bundle/start/traces/autoload/traces.vim:762 | |
Called 3 times | |
Total time: 0.001451 | |
Self time: 0.001219 | |
count total (s) self (s) | |
3 0.000067 let s:nr = bufnr('%') | |
3 0.000066 if !exists('s:buf[s:nr]') | |
1 0.000001 return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
............E.F | |
Stdout: | |
Test failed, retrying: No diagnostic | |
Logfile /tmp/omnisharp_44363_testy.sln_stdout_yehpf22m.log: | |
info: OmniSharp.Http.Middleware.LoggingMiddleware[0] | |
/checkalivestatus: 200 0ms | |
info: OmniSharp.OmniSharpWorkspace[0] | |
Miscellaneous file: /home/bstaletic/.vim/pack/bundle/start/YouCompleteMe/third_party/ycmd/ycmd/tests/cs/testdata/testy/DiagnosticRange.cs added to workspace | |
info: OmniSharp.Http.Middleware.LoggingMiddleware[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CandidatesWithCommonPrefix/1/0 750 | |
CandidatesWithCommonPrefix/16/0 4631 | |
CandidatesWithCommonPrefix/256/0 86416 | |
CandidatesWithCommonPrefix/4096/0 1404064 | |
CandidatesWithCommonPrefix/65536/0 31375124 | |
CandidatesWithCommonPrefix/1/10 713 | |
CandidatesWithCommonPrefix/16/10 4131 | |
CandidatesWithCommonPrefix/256/10 43568 | |
CandidatesWithCommonPrefix/4096/10 689512 | |
CandidatesWithCommonPrefix/65536/10 16244392 |
Besides what /u/adnukator said:
- Instead of your nested loop, tell the benchmark framework what arguments you need.
- Lookup tables perform better on monotonically increasing numbers. I think a better comparison would be a randomized array of values from which to pick arguments.
Here's what the benchmark looks like:
#include <array>
#include <algorithm>
#include
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-05-27 12:00:56.127492474 modprobe: FATAL: Module platform:alarmtimer not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.155315986 modprobe: FATAL: Module platform:reg-dummy not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.160477620 modprobe: FATAL: Module acpi:PNP0C0D: not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.161431198 modprobe: FATAL: Module acpi:PNP0C0A: not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.164979828 modprobe: FATAL: Module acpi:ACPI0003: not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.167843042 modprobe: FATAL: Module platform:dell-smbios not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.170110562 modprobe: FATAL: Module platform:dcdbas not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56.172949053 modprobe: FATAL: Module platform:platform-framebuffer not found in directory /lib/modules/5.12.6-artix1-1 | |
2021-05-27 12:00:56 |