t**r 发帖数: 3428 | 1 golang 怎么把"image"库都放标准库里了?
很业余的感觉 | b*******s 发帖数: 5216 | 2 你不是转java了?怎么又关心这个了
【在 t**r 的大作中提到】 : golang 怎么把"image"库都放标准库里了? : 很业余的感觉
| k**********g 发帖数: 989 | 3
Reason 1.
Web servers often need to deal with images intimately. At the minimum, it
needs to read the width and height, and resize the image, while avoiding any
round-trip to the disk. The whole processing time has to be less than a
second for almost all websites.
Reason 2.
Currently, Go has very little dynamic library support. (Basically out of
scope / out of discussion for now.) So, it can't load a "image library" at
runtime on demand.
Reason 3.
Go aims to plug a security hole in web servers by providing a safer
alternative to C and C++, while still aiming for high performance.
Traditionally, one source of security hole is in image processing libraries
that were traditionally implemented in C or C++ for performance reasons and
for which alternative implementations don't exist or were too slow. Go aims
to change that situation by adding support for image decoding.
(Information is just based on Google search. No guarantee of accuracy.)
【在 t**r 的大作中提到】 : golang 怎么把"image"库都放标准库里了? : 很业余的感觉
|
|