jakit (Jakit Liang)
- Login: jakit
- Registered on: 01/12/2022
- Last sign in: 12/18/2022
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 4 | 5 |
Activity
12/18/2022
-
06:03 PM Ruby Bug #19241: Ractor will change Windows System Power Mode
- I recheck this issue, It happened while starting with sh.exe in MSYS2.
And I start sh.exe standalone and Power Mode changed.
But why not happened with ruby-2.7? And I'm not sure. -
05:27 PM Ruby Bug #19241: Ractor will change Windows System Power Mode
- jakit (Jakit Liang) wrote:
> ## Problem
> ...
I've tried 2.7.7 and 2.5.9. And there is no such problem. -
05:25 PM Ruby Bug #19241 (Third Party's Issue): Ractor will change Windows System Power Mode
- ## Problem
Just start `irb`:
```
% irb
irb(main):001:0>
```
And you can see Windows Power mode will change to `High Performance`
## Version
`ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]`
And oth...
04/15/2022
-
06:22 AM Ruby Bug #18733: Heavy GC allocations cause performance issue with Ractor
- Thanks much! :)
And I change the topic to GC problem instead problem of m1.
Hope the memory management will get improvement. ;)
-
05:04 AM Ruby Bug #18733 (Assigned): Heavy GC allocations cause performance issue with Ractor
- Code:
```
require 'benchmark'
def fib(n)
return n if [0,1].include?(n)
fib(n-1) + fib(n-2)
end
tp = []
puts Benchmark.measure {
8.times do
tp << fork { fib(37) }
end
tp.each { |t| Process.wait(t) }
}
...
01/13/2022
-
11:50 AM Ruby Bug #18485 (Closed): Even though init a blocking Fiber with Fiber.new(blocking: true) but scheduler is invoked
- For example:
```
require 'fiber'
require 'io/nonblock'
class SimpleScheduler
def initialize
@readable = {}
@writable = {}
@waiting = {}
@ready = []
@blocking = 0
@urgent = IO.pipe
end
def ... -
09:57 AM Ruby Bug #18484 (Rejected): Fiber should return it self when blocked by IO
- Here's an example:
```
f = Fiber.new do
sleep(1)
Fiber.yield 123
end
p f.resume
```
Output:
```
nil
```
Expected output:
```
#<Fiber:0x000000010e825b18@(irb):59 (paused)>
```
========================
...
01/12/2022
-
05:48 PM Ruby Bug #18482 (Rejected): Fiber can not disable scheduler
- class Fiber can not disable scheduler with it's parameter.
When parameter is false:
```
require 'fiber'
require 'io/nonblock'
class SimpleScheduler
def initialize
@readable = {}
@writable = {}
@waiting = {}
...