Bond_009
5012c09368
Optimize GetMD5 function
...
| Method | Mean | Error | StdDev | Gen 0 | Allocated |
|----------------------------- |---------:|--------:|--------:|-------:|----------:|
| Old | 795.1 ns | 5.90 ns | 4.61 ns | 0.0029 | 312 B |
| HashDataInsteadOfComputeHash | 396.1 ns | 1.36 ns | 1.13 ns | 0.0014 | 152 B |
| StackallocedDestination | 395.8 ns | 1.80 ns | 1.60 ns | 0.0014 | 152 B |
| RentBuffer | 498.8 ns | 3.35 ns | 2.97 ns | - | 40 B |
Tested multiple possible speedups, in the end the simplest of them all won
2022-04-09 20:17:07 +02:00
Bond_009
832da133d8
Always create TaskCompletionSource<T> with TaskCreationOptions.RunContinuationsAsynchronously
2022-01-22 17:06:57 +01:00
Bond_009
f1f72c3060
Minor improvements
2021-08-04 14:40:09 +02:00
Bond_009
6f8ccab788
Move non-jellyfin extensions to separate project
2021-06-19 18:04:46 +02:00
cvium
9111730a0a
More review
2021-06-05 20:16:04 +02:00
cvium
0835b26889
review
2021-05-31 13:55:54 +02:00
cvium
1b49435a0e
Reduce some allocations
2021-05-16 14:49:11 +02:00
Bond-009
a4a3f598af
Merge pull request #5982 from Bond-009/nullable
2021-05-06 23:33:41 +02:00
Bond_009
ddb04dc12b
Use new ReadAllLines extensions
2021-05-06 14:12:43 +02:00
Bond_009
91c2a57b28
Enable nullable reference types for MediaBrowser.Common
2021-05-05 12:57:01 +02:00
cvium
ad3e835bcf
remove redundant code
2021-05-04 19:57:03 +02:00
cvium
c0feb3694b
rename to SplitEnumerator and fix test
2021-05-03 23:51:45 +02:00
cvium
608cba817c
Reduce some allocations with the magic of spans etc.
2021-04-30 15:09:36 +02:00
David
19e4ef82dd
Remove conversion from IPAddress to string to IPAddress
2021-03-23 17:16:10 +01:00
Joshua M. Boniface
c0c4aff8a6
Merge pull request #5276 from Bond-009/minor12
2021-02-22 21:00:34 -05:00
Bond_009
eba859e33e
Minor improvements
2021-02-21 02:49:52 +01:00
Bond_009
ed8fce2dce
Use SubtitleEdit to parse subtitles
2021-02-09 15:12:41 +01:00
Bond_009
bf4829a38c
Remove redundant statement
2021-01-26 20:28:35 +01:00
cvium
cb173d79e6
Fix the test
2020-09-10 14:30:33 +02:00
cvium
7576824cee
Standardize use of IsLocal and RemoteIp
2020-09-10 14:16:41 +02:00
Claus Vium
5813f8073c
Move HttpListenerHost middleware up the pipeline
2020-09-03 00:32:56 +02:00
Claus Vium
b9cd6a125b
Update MediaBrowser.Common/Extensions/HttpContextExtensions.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-09-02 15:27:54 +02:00
Claus Vium
bde8c00306
Don't call tostring twice
2020-09-02 12:49:48 +02:00
Claus Vium
e337756428
Remove ServiceStack and related stuff
2020-09-02 12:22:14 +02:00
BaronGreenback
301ddc1dac
Update HttpContextExtensions.cs
2020-07-19 22:19:17 +01:00
BaronGreenback
7becef73df
Update MediaBrowser.Common/Extensions/HttpContextExtensions.cs
...
Co-authored-by: Mark Monteiro <marknr.monteiro@protonmail.com>
2020-07-19 17:54:29 +01:00
BaronGreenback
69ba385782
Corrected comment
2020-07-18 16:55:46 +01:00
BaronGreenback
f9b0816b80
Changes a suggested.
2020-07-18 16:54:23 +01:00
Bond_009
c430a7ed8f
Address comments
2020-04-21 10:18:26 +02:00
Bond_009
7f4a229cd2
Add some simple tests
2020-04-20 10:18:12 +02:00
Mark Monteiro
3d8501e462
Document exception
2020-04-05 09:25:23 -04:00
Mark Monteiro
4efdc63337
Add missing call to ConfigureAwait()
2020-04-03 20:51:30 -04:00
Mark Monteiro
1c13be085f
Make HasExitedSafe() private
2020-03-27 01:28:24 +01:00
Mark Monteiro
97c36d11d4
Use a TimeSpan instead of ms and support providing a custom CancellationToken
2020-03-27 01:09:09 +01:00
Mark Monteiro
ee2f911a2b
Remove unnecessary CommonProcess abstraction
2020-03-27 00:10:16 +01:00
Bond-009
94fe9b8f6d
Merge branch 'master' into warn17
2020-03-11 20:26:43 +01:00
Bond_009
ada3f96668
Add tests for alpha numeric sorting
2020-03-05 00:54:46 +01:00
Bond_009
07cc4be6a7
Fix some warnings
...
* Add analyzers to MediaBrowser.XbmcMetadata
* Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata
* Add analyzers to MediaBrowser.WebDashboard
* Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard
* Disable SA1600 in favor of CS1591
2020-02-23 12:11:43 +01:00
Bond_009
2ef4ffd698
More warnings (removed)
2019-12-11 00:13:57 +01:00
Bond-009
a2c35e6dba
Merge remote-tracking branch 'upstream/master' into random
2019-12-06 12:06:13 +01:00
Bond_009
a245f5a0d4
Rewrite hex encoder/decoder
2019-11-01 17:52:29 +01:00
Bond_009
bbc0875387
Don't shuffle some types by default
2019-10-20 16:08:40 +02:00
Bond_009
9d4ce82ab9
Enable TreatWarningsAsErrors
for MediaBrowser.Common and Emby.Photos
...
Adds `#pragma warning disable CS1591` to all files in
MediaBrowser.Common containing undocumented members.
2019-10-09 17:14:15 +02:00
Bond_009
c9820d30ed
Fix multiple mistakes and warnings
2019-09-23 20:32:44 +02:00
Bond-009
6f17a0b7af
Remove legacy auth code ( #1677 )
...
* Remove legacy auth code
* Adds tests so we don't break PasswordHash (again)
* Clean up interfaces
* Remove duplicate code
* Use auto properties
* static using
* Don't use 'this'
* Fix build
2019-09-17 12:07:15 -04:00
Bond-009
ee637e8fec
Fix warnings, improve performance ( #1665 )
...
* Fix warnings, improve performance
`QueryResult.Items` is now a `IReadOnlyList` so we don't need to
allocate a new `Array` when we have a `List` (and `Items` shouldn't need to
be mutable anyway)
* Update Providers .csproj to latest C#
* Remove extra newline from DtoService.cs
* Remove extra newline from UserLibraryService.cs
2019-09-02 02:19:29 -04:00
Bond_009
5eaf5465a5
Check checksum for plugin downloads
...
* Compare the MD5 checksum when downloading plugins
* Reduced log spam due to http requests
* Removed 'GetTempFileResponse' function from HttpClientManager
* Fixed caching for HttpClientManager
2019-08-11 15:54:58 +02:00
Joshua Boniface
ca3bb308b3
Add the proper Class too
2019-04-17 22:46:26 -04:00
Bond-009
b44a70ff36
Simplify/remove/clean code
...
* Remove useless runtime check (we only support one)
* Remove unused args
* Remove a global constant
And ofc fix some warnings ;)
2019-03-25 22:25:32 +01:00
Claus Vium
318e0d4a24
Add GetValueOrDefault dictionary extension
2019-03-05 10:27:25 +01:00